
import request from '@/utils/request'

// get basic
export function fetchBasic(data) {
  return request({
    url: '/api/uni/marketing/basic/fetch',
    method: 'post',
    data
  })
}

// save basic
export function saveBasic(data) {
  return request({
    url: '/api/uni/marketing/basic/save',
    method: 'post',
    data
  })
}

// ----------------------------------------------------------

// get second kill
export function fetchSeckill(data) {
  return request({
    url: '/api/uni/marketing/second-kill/fetch',
    method: 'post',
    data
  })
}

// save second kill
export function saveSeckill(data) {
  return request({
    url: '/api/uni/marketing/second-kill/save',
    method: 'post',
    data
  })
}

// ----------------------------------------------------------

// get group
export function fetchGroup(data) {
  return request({
    url: '/api/uni/marketing/group/fetch',
    method: 'post',
    data
  })
}

// save group
export function saveGroup(data) {
  return request({
    url: '/api/uni/marketing/group/save',
    method: 'post',
    data
  })
}

// ----------------------------------------------------------

// group level
export function groupLevel(data) {
  return request({
    url: '/api/uni/marketing/group-level/list',
    method: 'post',
    data
  })
}
